<template>
	<view class="pbgf">
		<view class="p2432">
			<u-parse :content="content"></u-parse>
		</view>
		<!-- 使用
		 toPath(`pages/richText/richText?title=&type=`)
		 -->
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				content: '',
			}
		},
		onLoad(options) {
			if (options.type) {
				uni.setNavigationBarTitle({ //修改导航栏文字
					title: options.title,
				})
				this.configured(options.type)
			}

		},
		onShow() {

		},
		methods: {
			configured(e) { //配置
				this.$api.configured({
					type:e
				}).then(res => {
					if (res.code == 1) {
						this.content = res.data
					}
				})
			}
		},
		computed: {

		},
		watch: {

		}
	}
</script>

<style lang="scss" scoped>

</style>